package com.uchiha.nova.core.model.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.uchiha.nova.core.tool.support.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

/**
 * 业务人员账号 实体类
 *
 * @author Uchihashiamu
 */
@Data
@TableName("nova_oil_user")
@EqualsAndHashCode(callSuper = true)
@Schema(description = "OilUser对象")
public class OilUserEntity extends BaseEntity implements Serializable {

	private static final long serialVersionUID = 1L;

	/**
	 * 用户名
	 */
    @Schema(description = "用户名")
    @TableField("username")
	private String username;

	/**
	 * 名称
	 */
	@TableField("name")
	@Schema(description = "名称")
	private String name;
	/**
	 * 省代码
	 */
    @Schema(description = "省代码")
    @TableField("province_code")
	private String provinceCode;
	/**
	 * 城市代码
	 */
    @Schema(description = "城市代码")
    @TableField("city_code")
	private String cityCode;
	/**
	 * 区县代码
	 */
    @Schema(description = "区县代码")
    @TableField("area_code")
	private String areaCode;
	/**
	 * 街道id
	 */
    @Schema(description = "街道id")
    @TableField("street_code")
	private String streetCode;
	/**
	 * 角色id
	 */
    @Schema(description = "角色id")
    @TableField("role_id")
	private Long roleId;
	/**
	 * 头像
	 */
    @Schema(description = "头像")
    @TableField("img")
	private String img;
	/**
	 * 用户的租户
	 */
    @Schema(description = "用户的租户")
    @TableField("tenant")
	private String tenant;

}
